package abstractfactory;

import abstractfactory.animal.AnimalFacotry;
import abstractfactory.animal.DogFactory;
import factorymethod.FruitFactory;
import factorymethod.OrangeFactory;

/**
 * @Author Fish Paradise
 * @Description
 * @Date 2019/1/17  17:20
 **/
public class BFactory implements  BothFacotry{
    public FruitFactory createFruitFactory() {
        return new OrangeFactory();
    }

    public AnimalFacotry createAnimalFactory() {
        return new DogFactory();
    }
}
